package com.ruoyi.manage.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 邮件管理对象 mail
 * 
 * @author Admin
 * @date 2025-09-06
 */
public class Mail extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 邮件编号 */
    @Excel(name = "邮件编号")
    private Long id;

    /** 邮件图片 */
    @Excel(name = "邮件图片")
    private String photo;

    /** 写信者编号 */
    @Excel(name = "写信者编号")
    private Long senderId;

    /** 接收者编号 */
    @Excel(name = "接收者编号")
    private Long receiverId;

    /** 上传社工编号 */
    @Excel(name = "上传社工编号")
    private Long updaterId;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setPhoto(String photo) 
    {
        this.photo = photo;
    }

    public String getPhoto() 
    {
        return photo;
    }

    public void setSenderId(Long senderId) 
    {
        this.senderId = senderId;
    }

    public Long getSenderId() 
    {
        return senderId;
    }

    public void setReceiverId(Long receiverId) 
    {
        this.receiverId = receiverId;
    }

    public Long getReceiverId() 
    {
        return receiverId;
    }

    public void setUpdaterId(Long updaterId) 
    {
        this.updaterId = updaterId;
    }

    public Long getUpdaterId() 
    {
        return updaterId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("photo", getPhoto())
            .append("senderId", getSenderId())
            .append("receiverId", getReceiverId())
            .append("updaterId", getUpdaterId())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
